import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

import "@/assets/font/iconfont.css";

import "@/assets/style/index.scss";


import '@/mock/index.js';

import router from "@/router/index.js";
import App from "./App.vue";

import { useTheme } from "./utils/theme";

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.use(ElementPlus);
app.use(router);
app.use(useTheme())

app.mount("#app");
